﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;

namespace WpfKeyFrame.Views
{
    public class PublicClasses
    {
        /// <summary>
        /// 帧
        /// </summary>
        public class FrameClass
        {
            public int ID { get; set; }
            public WriteableBitmap FrameBitmap { get; set; } // 帧图像
            public TimeSpan FrameBeginTime { get; set; } // 帧时间，毫秒
            public double FrameWidth { get; set; } = 100;
            public double FrameHeight { get; set; } = 100;
            public double FrameLeft { get; set; }
            public double FrameTop { get; set; }
            public string FrameViewbox { get; set; } = "";
            public FrameClass()
            {
                //FrameBitmap = new(FrameWidth, FrameWidth, 96,96,PixelFormats.Indexed8,new BitmapPalette(null));
                FrameBeginTime = TimeSpan.FromMilliseconds(0); // 40毫秒一帧，每秒25帧
            }
        }
    }
}
